<?php

namespace App\Http\Controllers\api;

use App\Http\Controllers\Controller;
use App\Models\ClinchHouse;
use Illuminate\Http\Request;

class StandingController extends Controller
{
    public function getWellData(Request $request)
    {
        $keyword = $request->get('keyword');
        $intermediary_id = $request->get('id');
        $type = 1;
        $standData = ClinchHouse::getBrokerData($type,$intermediary_id,$keyword);
        return ['code'=>10001,'msg'=>'请求成功','data'=>$standData];
    }

    public function getRentData(Request $request)
    {
        $keyword = $request->get('keyword');
        $intermediary_id = $request->get('id');
        $type = 2;
        $standData = ClinchHouse::getBrokerData($type,$intermediary_id,$keyword);
        return ['code'=>10001,'msg'=>'请求成功','data'=>$standData];
    }
}
